import request from '@/utils/request'

export function fetchList(data) {
  return request({
    url: '/badrecords',
    method: 'get',
    params: data
  })
}

// 添加不良记录
export function addData(data) {
  return request({
    url: '/badrecords',
    method: 'post',
    data
  })
}
